﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Data.SqlClient;
using System.Windows.Forms;
using quanlycd3lop.BL;

namespace quanlycd3lop.GUI
{
    public partial class frm_Shop : Form
    {
        public frm_Shop()
        {
            InitializeComponent();
        }
        quanlycd3lop.BL.cl_ShopCD clshopcd;
        private void frm_Shop_Load(object sender, EventArgs e)
        {
            clshopcd = new quanlycd3lop.BL.cl_ShopCD(this);
            clshopcd.hienthi(null);
            clshopcd.set_combobox();
        }

        private void bt_them_Click(object sender, EventArgs e)
        {
            clshopcd.themmoi();
            Refresh();
        }

        private void bt_xoa_Click(object sender, EventArgs e)
        {
            clshopcd.xoa();
            Refresh();
        }

        private void bt_sua_Click(object sender, EventArgs e)
        {
            clshopcd.sua();
            Refresh();
        }

        private void bt_reset_Click(object sender, EventArgs e)
        {
            txt_MaCD.Clear();
            txt_TenLoai.Clear();
            txt_DonGiaThue.Clear();
        }
        
    }
}
